﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EMoney.IStock.Client.Models.MC
{
    /// <summary>
    /// 我的i豆
    /// </summary>
    [Serializable]
    public class MC_MyInfo
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        public int UserID { get; set; }
        /// <summary>
        /// I豆数量
        /// </summary>
        public int iNum { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        public int Level { get; set; }
        /// <summary>
        /// 下一等级i豆数量
        /// </summary>
        public int NextLeveliNum { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 用户头像
        /// </summary>
        public string UserPic { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Mobile { get; set; }
        /// <summary>
        /// 已完成的单次任务编号
        /// </summary>
        public Dictionary<int,DateTime> CompletedSingleTaskID { get; set; }
        /// <summary>
        /// 已完成的日常任务编号
        /// </summary>
        public Dictionary<int, DateTime> CompletedDailyTaskID { get; set; }        
        /// <summary>
        /// 今日完成任务记录
        /// </summary>
        public List<MC_CompleteTaskRecord> TodayCompleteTaskRecord { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
        /// <summary>
        /// 最近任务完成日期
        /// </summary>
        public DateTime TaskDate { get; set; }
        /// <summary>
        /// 连登天数
        /// </summary>
        public int ContinueLoginDays { get; set; }
        /// <summary>
        /// 连登任务提示
        /// </summary>
        public string ContinueLoginTips { get; set; }
        /// <summary>
        /// 任务信息
        /// </summary>
        public MC_TaskInfo TaskInfo { get; set; }
    }

    /// <summary>
    /// 用户头像
    /// </summary>
    [Serializable]
    public class UserPic
    {
        /// <summary>
        /// 尺寸
        /// </summary>
        public int Size { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Url { get; set; }
    }

    /// <summary>
    /// 账户类型
    /// </summary>
    [Serializable]
    public enum AccountType
    {
        /// <summary>
        /// 手机号码
        /// </summary>
        Mobile = 1,
        /// <summary>
        /// 电子邮箱
        /// </summary>
        Email = 2
    }
}
